import axios from '@/libs/request/axios'
// 初审提交
export const auditSubmit = (params) => {
    return axios.request({
        url: `/case/loanApprove/auditSubmit`,
        params: params,
        method: 'post'
    })
}

//  退回经销商
export const submitBackToPartners = (params) => {
    return axios.request({
        url: `/case/loanApprove/submitBackToPartners`,
        params: params,
        method: 'post'
    })
}

//获取审批记录
export const getApproveRecord = (params) => {
    return axios.request({
        url: `/case/loanApprove/getApproveRecord`,
        params: params,
        method: 'post'
    })
}


//获取审批记录
export const saveLoanFraudInfo = (params) => {
    return axios.request({
        url: `/case/loanApprove/saveLoanFraudInfo`,
        data: params,
        method: 'post'
    })
}
//获取审批记录
export const sendCaseTortoise = (applyNo) => {
    return axios.request({
        url: `/case/loanApprove/sendCaseTortoise`,
        params: {
            applyNo:applyNo
        },
        method: 'post'
    })
}

export const savePause = (params) => {
    return axios.request({
        url: `/case/loanApprove/savePause`,
        data: params,
        method: 'post'
    })
}


export const getGroupLeader = (params) => {
    return axios.request({
        url: `/case/loanApprove/getGroupLeader`,
        data: params,
        method: 'post'
    })
}
